﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GUI.uc_control.uc_event
{
    public class ucLoginEvent : GUI.uc_control.ucEventInterface
    {
        public static int INVALID_ROLE = (-1);
        public static int ADMIN_ROLE = (0);
        public static int SELLER_ROLE = (10);

        private int _role;
        private int _userID;

        public ucLoginEvent()
        {
            _role = INVALID_ROLE;
            _userID = GUI.gui_dto.User.INVALID_USER_ID;
        }

        public ucLoginEvent(int role, int userid)
        {
            _role = role;
            _userID = userid;
        }

        public int getUserRole()
        {
            return _role;
        }

        public int getUserID()
        {
            return _userID;
        }

        public int GetEventID()
        {
            return GUI.uc_control.uc_event.ucEventID.LOGIN_EVENT_ID;
        }
    }
}
